use "$Data_generated/Departement.dta", clear

reg asin_day  i.year##c.asin_perm i.post26##c.asin_pop, robust cluster(Depnum)
margins, dydx(asin_perm) over(year)
marginsplot, xline(1927, lwidth(10) lpattern(solid) lcolor(gs9%30)) text(-0.7 1927 "Condemnation", orientation(vertical)) title("Marginal effects - AF Branches in year t on Days of violence (1930's)", size(small)) subtitle("No control", size(vsmall)) xtitle("Year") xlabel(1921(1)1936,alternate) yline(0, lpattern(dash) lcolor(gs3%50))
graph save "Sect1.gph", replace
reg asin_partviols  i.year##c.asin_perm i.post26##c.asin_pop, robust cluster(Depnum)
margins, dydx(asin_perm) over(year)
marginsplot, xline(1927, lwidth(10) lpattern(solid) lcolor(gs9%30)) text(-1.5 1927 "Condemnation", orientation(vertical)) title("Marginal effects - AF Branches in year t on Participants in violence in the 1930's", size(small)) subtitle("No control", size(vsmall)) xtitle("Year") xlabel(1921(1)1936,alternate) yline(0, lpattern(dash) lcolor(gs3%50))
graph save "Sect2.gph", replace
graph combine "Sect1.gph" "Sect2.gph", ycommon row(1)
graph export "$Figures/FigureB2.pdf", name(Graph) replace
graph export "$Figures/FigureB2.png", name(Graph) replace